//
// Created by hkkzzxz on 24-9-10.
//

#include "EmployeeAttendanceRules.h"

void EmployeeAttendanceRules::FillFromRow(sql::ResultSet *rs) {
    id = rs->getString("employee_id");
    name = rs->getString("name");
    morningStartTime = rs->getString("morning_start_time");
    eveningEndTime = rs->getString("evening_end_time");
}

const std::string &EmployeeAttendanceRules::getId() const {
    return id;
}

const std::string &EmployeeAttendanceRules::getName() const {
    return name;
}

const std::string &EmployeeAttendanceRules::getMorningStartTime() const {
    return morningStartTime;
}

const std::string &EmployeeAttendanceRules::getEveningEndTime() const {
    return eveningEndTime;
}
